package com.nlelpct.manage.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 小马
 * @since 2023-07-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_employee")
public class SysEmployee extends Model<SysEmployee> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "employee_id", type = IdType.ASSIGN_UUID)
    private String employeeId;

    /**
     * 所属企业
     */
    private String companyId;

    /**
     * 用户ID 关联主键
     */
    private String userId;

    /**
     * 员工工号
     */
    private String employeeNum;

    /**
     * 员工姓名 > 用户姓名
     */
    private String employeeName;

    /**
     * 员工邮箱 > 用户邮箱
     */
    private String employeeMail;

    /**
     * 0.禁用  1.正常
     * 维护：com.nlelpct.manage.constant.SysEmployeeConstant
     */
    private Integer employeeStatus;

    /**
     * 删除标志（0代表删除 1代表存在）
     * 维护：com.nlelpct.manage.constant.SysEmployeeConstant
     */
    private Integer delFlag;

    /**
     * 上次登录时间
     */
    private Long lastLogin;

    /**
     * 所属系统
     */
    private String systemId;

    /**
     * 上次登录时间
     */
    private Long preLogin;

    /**
     * 手写签名key --> ossKey
     */
    private String employeeSignKey;

    /**
     * 手写签名状态（0.禁用 1.启用
     */
    private Integer employeeSignStatus;

    /**
     * 创建时间
     */
    private Long createTime;

    /**
     * 修改时间
     */
    private Long updateTime;

    /**
     * 修改人员工id
     */
    private String updateBy;

    /**
     * 创建人员工id
     */
    private String createBy;


    public static final String EMPLOYEE_ID = "employee_id";

    public static final String COMPANY_ID = "company_id";

    public static final String USER_ID = "user_id";

    public static final String EMPLOYEE_NUM = "employee_num";

    public static final String EMPLOYEE_NAME = "employee_name";

    public static final String EMPLOYEE_MAIL = "employee_mail";

    public static final String EMPLOYEE_STATUS = "employee_status";

    public static final String DEL_FLAG = "del_flag";

    public static final String LAST_LOGIN = "last_login";

    public static final String SYSTEM_ID = "system_id";

    public static final String PRE_LOGIN = "pre_login";

    public static final String EMPLOYEE_SIGN_KEY = "employee_sign_key";

    public static final String EMPLOYEE_SIGN_STATUS = "employee_sign_status";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_TIME = "update_time";

    public static final String UPDATE_BY = "update_by";

    public static final String CREATE_BY = "create_by";


}
